package com.qingfeng.client.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @author zhangyuefei
 * @version 1.0
 * @date 2020/4/28 9:28 上午
 */
@ApiModel(value = "各个地区邮费")
@Data
@TableName(value = "postage_address")
public class PostageAddress {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "主键")
    private Integer id;

    /**
     * 地址code
     */
    @NotNull(message = "地址编码不能为空")
    @TableField(value = "code")
    @ApiModelProperty(value = "地址code")
    private Integer code;

    /**
     * 地址名称
     */
    @NotNull(message = "地址不能为空")
    @TableField(value = "address")
    @ApiModelProperty(value = "地址名称")
    private String address;

    /**
     * 计算模版id
     */
    @TableField(value = "template_id")
    @ApiModelProperty(value = "计算模版id")
    private Integer templateId;

    /**
     * 店铺id
     */
    @TableField(value = "store_id")
    @ApiModelProperty(value = "店铺id")
    private Integer storeId;


}
